package com.hnguigu.health.houduan.lq.service_lq.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hnguigu.health.houduan.lq.service_lq.TInterposeClassifyService;
import com.hnguigu.health.mapper.TInterposeClassifyMapper;
import com.hnguigu.health.pojo.TInterposeClassify;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TInterposeClassifyServiceImpl  implements TInterposeClassifyService {
    @Autowired(required = false)
    TInterposeClassifyMapper tInterposeClassifyMapper;

    @Override
    public int deleteByTermer(String tmerber) {
        return tInterposeClassifyMapper.deleteByTermer(tmerber);
    }

    @Override
    public int insertSelective(TInterposeClassify record) {
        return tInterposeClassifyMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(TInterposeClassify record) {
        return tInterposeClassifyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public TInterposeClassify selectByTmerber(String tmerber) {
        return tInterposeClassifyMapper.selectByTmerber(tmerber);
    }

    @Override
    public PageInfo<TInterposeClassify> selectAllTInter(int page,int num,String content) {
        PageHelper.startPage(page,num);
        return new PageInfo<>(tInterposeClassifyMapper.selectAllTInter(content));
    }
}
